import axios from 'axios';
export function getFloorNum (wmsUrl= '', query) {
  return axios({
    url: wmsUrl + '/api/wms_storage_loc/getFloorFlagNum',
    method: 'post',
    data: query,
    parameter: {
      type: 'WMS'
    }
  });
}

export function getAllCustomer (wmsUrl= '', query) {
  return axios({
    url: wmsUrl + '/api/wms_customer/selectByCustomerType',
    method: 'post',
    data: query,
    parameter: {
      type: 'WMS'
    }
  });
}

export function getAllMatType (wmsUrl= '') {
  return axios({
    url: wmsUrl + '/api/dictionary/MAT_TYPE/list',
    method: 'get',
    parameter: {
      type: 'WMS'
    }
  });
}

export function getAllWareList (wmsUrl= '') {
  return axios({
    url: wmsUrl + '/api/wms_ware_house/getAllWareData',
    method: 'post',
    parameter: {
      type: 'WMS'
    }
  });
}

export function getTunnelCoordinate (wmsUrl= '', query) {
  return axios({
    url: wmsUrl + '/api/wms_storage_loc/getTunnelCoordinate',
    method: 'post',
    data: query,
    parameter: {
      type: 'WMS'
    }
  });
}

export function selectAllStockInfo (wmsUrl= '', query) {
  return axios({
    url: wmsUrl + '/api/wms_stock/selectAllStockPlatformInfo',
    method: 'post',
    data: query,
    parameter: {
      type: 'WMS'
    }
  });
}

export function selectGoodsStatic (wmsUrl= '', query) {
  return axios({
    url: wmsUrl + '/api/wms_stock/selectWarehouseStockTypeDistributionView',
    method: 'post',
    data: query,
    parameter: {
      type: 'WMS'
    }
  });
}

export function selectWarehouseDataInfo (wmsUrl= '', query) {
  return axios({
    url: wmsUrl + '/api/wms_stock/selectWarehouseStockDistributionView',
    method: 'post',
    data: query,
    parameter: {
      type: 'WMS'
    }
  });
}

export function selectWarehouseStockTypeTop (wmsUrl= '', query) {
  return axios({
    url: wmsUrl + '/api/wms_stock/selectWarehouseStockTypeTopDistributionView',
    method: 'post',
    data: query,
    parameter: {
      type: 'WMS'
    }
  });
}
